package com.game.main;

import java.util.logging.Level;

import javax.swing.UIManager;

import com.game.states.MenuState;
import com.jme.system.DisplaySystem;
import com.jme.system.GameSettings;
import com.jme.util.LoggingSystem;
import com.jmex.editors.swing.settings.GameSettingsPanel;
import com.jmex.game.StandardGame;
import com.jmex.game.state.GameStateManager;

public class JStarCat{
	public static void main(String[] args) throws InterruptedException {
		 try {
			 UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceRavenGraphiteGlassLookAndFeel");
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		StandardGame game = new StandardGame("JStarCat");
		GameSettingsPanel.prompt(game.getSettings());
		LoggingSystem.getLogger().setLevel(Level.OFF);
		game.start();
		MenuState menu = new MenuState(game.getDisplay().getWidth(),
											   game.getDisplay().getHeight());
		GameStateManager.getInstance().attachChild(menu);
		menu.setActive(true);
		//DisplaySystem.getDisplaySystem().setGamma(0.5f);
	}
}